@extends('admin.layout.layout')
@section('title')
<title>北京市仁爱慈善后台</title>
<script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.config.js')}}"></script>
<script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.all.min.js')}}"></script>
<script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/lang/zh-cn/zh-cn.js')}}"></script>
@endsection
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">图文修改</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
    <div class="col-lg-8 col-lg-offset-2">
        <form role="form" action="{{url('/admin/tca/conupdate')}}" method="post">
            <div class="form-group">
                <label>标题</label>
                <input class="form-control" type="text" name="title" value="{{$data->title}}">
            </div>
            <div class="form-group">
                <label>作者</label>
                <input class="form-control" type="text" name="author" value="{{$data->author}}">
            </div>
            <div class="form-group">
                <label>发布者</label>
                <input class="form-control" type="text" name="publisher" value="{{$data->publisher}}">
            </div>
            <div class="form-group">
                <label>发布时间</label>
                <input class="form-control" type="text" name="time" value="{{$data->time}}">
            </div>
            <input type="hidden" name="id" value="{{$data->id}}">
            <div class="form-group">
                <label>文章内容</label>
                <script id="editor" name="content" type="text/plain" style="height:500px;">
                    <?php echo html_entity_decode($data->content); ?>
                </script>
            </div>
            {{csrf_field()}}
            <button class="btn btn-primary" type="submit">修改</button>
            <button class="btn btn-danger" type="reset">重置</button>
        </form>
    </div>
</div>
<!-- /.row (nested) -->
@endsection
@section('js')
<script type="text/javascript">
    var ue = UE.getEditor('editor');
</script>
@endsection
